package com.stations.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@TableName(value = "t_transmitter_exception")
public class TTransmitterException {
    /**
     * 故障ID
     */
    @TableId(value = "alarm_id", type = IdType.INPUT)
    private String alarmId;

    /**
     * 台站ID
     */
    @TableField(value = "station_code")
    private String stationCode;

    /**
     * 发射机ID
     */
    @TableField(value = "trans_code")
    private String transCode;

    /**
     * 故障开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 故障结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 故障类型 
        501	整机输出功率报警
        502	整机反射功率报警
        503	整机驻波比报警
        504	整机功放电压报警
        505	整机电流报警
        506	温度1报警
        507	温度2报警
     */
    @TableField(value = "exception_code")
    private String exceptionCode;

    /**
     * 故障级别
     */
    @TableField(value = "exception_level")
    private String exceptionLevel;

    /**
     * 状态数据值
     */
    @TableField(value = "exception_data")
    private String exceptionData;

    /**
     * 故障上报时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @TableField(value = "send_time")
    private Date sendTime;
}